package com.zhouyu.service;

import com.zhouyu.spring.ZhouyuApplicationContext;

/**
 * @program: shouxieSpring
 * @author: jzhou
 * @date: 2022-04-13 22:09
 * @version: 1.0
 * @description: 测试
 **/
public class Test {
    public static void main(String[] args) {
        ZhouyuApplicationContext applicationContext = new ZhouyuApplicationContext(AppConfig.class);

        UserService userService = (UserService) applicationContext.getBean("userService");
//        userService.test();
        UserInterface userServiceProxy = (UserInterface) applicationContext.getBean("userServiceProxy");
        userServiceProxy.test();
        userServiceProxy.test1(userService.toString());
//        System.out.println(applicationContext.getBean("userService"));
//        System.out.println(applicationContext.getBean("orderService"));
    }
}
